<?php /* Smarty version Smarty-3.1.8, created on 2014-06-27 14:43:10
         compiled from "C:\wamp\www\auditorias\views\checklist\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3178353adc94e55a7f1-47667901%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4b3b09adfe15ac651f4a1cd35da2a7a4f0874a78' => 
    array (
      0 => 'C:\\wamp\\www\\auditorias\\views\\checklist\\index.tpl',
      1 => 1400703069,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3178353adc94e55a7f1-47667901',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lista' => 0,
    'datos' => 0,
    'nombre' => 0,
    '_layoutParams' => 0,
    'grupo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_53adc94e63be39_93434666',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_53adc94e63be39_93434666')) {function content_53adc94e63be39_93434666($_smarty_tpl) {?><h2>Lista de Preguntas</h2>
<table>
    <?php $_smarty_tpl->tpl_vars['nombre'] = new Smarty_variable('', null, 0);?>
    <?php $_smarty_tpl->tpl_vars['grupo'] = new Smarty_variable('', null, 0);?>
    <?php  $_smarty_tpl->tpl_vars['datos'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['datos']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['lista']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['datos']->key => $_smarty_tpl->tpl_vars['datos']->value){
$_smarty_tpl->tpl_vars['datos']->_loop = true;
?>
        <?php if ($_smarty_tpl->tpl_vars['datos']->value['proc_nom']!=$_smarty_tpl->tpl_vars['nombre']->value){?>
            <?php $_smarty_tpl->tpl_vars['nombre'] = new Smarty_variable($_smarty_tpl->tpl_vars['datos']->value['proc_nom'], null, 0);?>
    <tr>
        <td colspan="5"><hr /></td>
    </tr>
    <tr class="headtr">
        <th class="izq" colspan="5">
            <a class="agregar" href="<?php echo $_smarty_tpl->tpl_vars['_layoutParams']->value['root'];?>
checklist/nuevo_checklist/<?php echo $_smarty_tpl->tpl_vars['datos']->value['id_proceso'];?>
">Agregar checklist</a>
            <?php echo $_smarty_tpl->tpl_vars['datos']->value['proc_nom'];?>

        </th>
    </tr>
    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['datos']->value['descrip']!=$_smarty_tpl->tpl_vars['grupo']->value){?>
            <?php $_smarty_tpl->tpl_vars['grupo'] = new Smarty_variable($_smarty_tpl->tpl_vars['datos']->value['descrip'], null, 0);?>
    <tr class="headtr">
        <th class="izq" colspan="5">
            <a class="agregar" href="<?php echo $_smarty_tpl->tpl_vars['_layoutParams']->value['root'];?>
checklist/nuevo/<?php echo $_smarty_tpl->tpl_vars['datos']->value['id_grupo'];?>
">Agregar pregunta</a>
            <?php echo $_smarty_tpl->tpl_vars['datos']->value['descrip'];?>

        </th>
    </tr>
    <tr>
        <th>Pregunta</th>
        <th>Categoria</th>
        <th>Calificacion</th>
        <th colspan="2"></th>
    </tr>
    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['datos']->value['pregunta']){?>
    <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['datos']->value['pregunta'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['datos']->value['categoria'];?>
</td>
        <td class="cen"><?php echo $_smarty_tpl->tpl_vars['datos']->value['calificacion'];?>
</td>
        <td><a class="eliminar" onclick="return confirm('Est&aacute;s seguro que deseas eliminar el registro?');" class="eliminar" href="<?php echo $_smarty_tpl->tpl_vars['_layoutParams']->value['root'];?>
checklist/eliminar/<?php echo $_smarty_tpl->tpl_vars['datos']->value['id'];?>
">Eliminar</a></td>
        <td><a class="editar" class="editar" href="<?php echo $_smarty_tpl->tpl_vars['_layoutParams']->value['root'];?>
checklist/editar/<?php echo $_smarty_tpl->tpl_vars['datos']->value['id'];?>
">Editar</a></td>
    </tr>
    <?php }else{ ?>
    <tr>
        <td colspan="5"><strong>No hay preguntas para este apartado!</strong></td>
    </tr>
    <?php }?>
    <?php } ?>
</table><?php }} ?>